#1.输出1 到100 的和
'''import math
sum=0
for i in range(1,101):
    sum=sum+i
print('1到100的和为%d.'%sum)'''

#2.通过for 循环打印99 乘法表
'''import math
for i in range(1,10):
    for j in range (1,i+1):
        print('%d * %d = %d '%(j,i,i*j),end="\t")
    print( )'''

#3.打印如下所示的菱形
'''for i in range(1,5):
    for j in range(1,5-i):
        print(' ',end="")
    for j in range(1,2*i):
        print('*',end="")
    print()
for i in range(1,4):
    for j in range(1,i+1):
        print(' ',end="")
    for j in range(1,8-2*i):
        print('*',end="")
    print()'''

#4.输出1-100 之间的偶数，不是偶数的先使用pass 空语句占位
for i in range(1,101):
    if (i%2==0):
        print('%d '%i,end="")
    else:
        pass










